package com.zhdl.common.util;

import cn.hutool.crypto.digest.HMac;
import cn.hutool.crypto.digest.HmacAlgorithm;

/**
 * @author
 */
public class Md5Util {

    /**
     * 生成macMD5加密字符串
     *
     * @param passWord
     * @return
     */
    public static String macMd5(String passWord) {
        byte[] key = passWord.getBytes();
        HMac mac = new HMac(HmacAlgorithm.HmacMD5, key);
        return mac.digestHex(passWord);
    }
}
